<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<!doctype html>
<html>
<head>
<meta charset=UTF-8>
<script type="text/javascript" src="/jquery-1.6.4.min.js"></script>
<script type="text/javascript">
	$(function() {
		$("#button").click(function() {
			$.ajax({
				url : "/test/channelTestPost",
				dataType : "json",
				data : {
					to : $("#to").val(),
					message : $("#message").val()
				},
				success : function(data) {
					console.log(data);
				}
			});
		});
	});
</script>
</head>
<body>
	<input type="text" id="to" size="100" /><br/>
	<input type="text" id="message" size="100" /><br/>
	<input type="button" id="button" value="send" /><br/>
</body>
</html>
